
# encoding=utf-8
from dnac_f import *
import time

# 这个是用于简易探索API的测试脚本。注释的时已经测试过能用的，要想使用，可以解注
# 其实API的用法大同小异。API官网：https://developer.cisco.com/docs/dna-center/api/1-3-3-x/
# 有些API目前无法使用，本脚本出现的都是能使用的。

if __name__ == "__main__":
    my_dnac = dnac()

    content = {
        'timestamp': 100
    }
    # response_dict = my_dnac.post('site', data=content)


    response_dict = my_dnac.get('interface/network-device/1cfd383a-7265-47fb-96b3-f069191a0ed5')  # 能用
    # response_dict = my_dnac.get('network-device-poller/cli/legit-reads')  # 能用
    # response_dict = my_dnac.get('discovery/count')  # 能用
    # response_dict = my_dnac.get('network-device/config')  # 能用
    # response_dict = my_dnac.get('network-device/f175831a-ad64-40f3-8c98-3f49c7cd7bd0/vlan')  # 能用
    # response_dict = my_dnac.get('network-device/f175831a-ad64-40f3-8c98-3f49c7cd7bd0')  # 能用
    # response_dict = my_dnac.get('interface/count')  # 能用
    # response_dict = my_dnac.get('network-device/count')  # 能用
    # response_dict = my_dnac.get('template-programmer/template')  # 能用

    print('Over')